<% if @customers.length == 0%>
    <p>Não existem clientes cadastrados.</p>
<% else %>
    <table border="1">
    <thead>
        <tr>
            <td>Nome</td>
            <td>Descrição</td>
            <td>&nbsp;</td>
        </tr>
    </thead>
    <tbody>
    <% for customer in @customers %>
        <tr>
            <td><%=customer[:name]%></td>
            <td><%=customer[:description]%></td>
            <td>
                <%=link_to_remote( image_tag("/images/icons/alter.gif", :title => "alterar", :border => "0" ) , :url => { :action => "form", :id => customer[:id], :act => "alter" } ) %>
                <%=link_to_remote( image_tag("/images/icons/remove.gif", :title => "Remover", :border => "0" ) , :url => { :action => "remove", :id => customer[:id] } ) %>
            </td>
        </tr>
    <% end %>
    </tbody>
    <tfoot>
        <tr>
            <td colspan="3">Paginate</td>
        </tr>
    </tfoot>
    </table>
<% end %>

